package com.hxzy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.system.dto.SysDeptSearchDTO;
import com.hxzy.system.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_dept(科室信息)】的数据库操作Mapper
* @createDate 2023-03-10 11:56:11
* @Entity com.hxzy.entity.SysDept
*/
@Mapper
@Repository
public interface SysDeptMapper extends BaseMapper<SysDept> {
    SysDept selectByPrimaryKey(Long id);

    /**
     * 查询所有科室信息
     * @return
     */
    List<SysDept> getDepts();

    /**
     * 查询
     * @param searchDTO
     * @return
     */
    List<SysDept> search(@Param(value = "dto") SysDeptSearchDTO searchDTO);
}




